//这个是建议书审批中的接口
import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取建议书列表
  getTableData: (query) => api.post(`${config.interfaces.type1}proposal/queryproposallist`, query),
  // 资管获取建议书列表
  getTableDataWITHMAAT: (query) => api.post(`maat/${config.interfaces.type1}proposal/queryproposallist`, query),
  // 审批详情中数据的获取
  findOnByproposalId: (query) => api.get(`${config.interfaces.type1}etfproposal/find-one-by-proposal-id`, query),
  // 资管审批详情中数据的获取
  findOnByproposalIdWITHMAAT: (query) => api.get(`maat/${config.interfaces.type1}etfproposal/find-one-by-proposal-id`, query),
  // 拒绝通过接口
  proposalAuth: (query) => api.post(`${config.interfaces.type1}etfproposal/auth`, query),
  // 资管拒绝通过接口
  proposalAuthWITHMAAT: (query) => api.post(`maat/${config.interfaces.type1}etfproposal/auth`, query),
};
